import request from '@/utils/request'

// 查询能耗分析配置列表
export function listDispatchEnergyAnalysisConfigs(query) {
  return request({
    url: '/system/dispatchEnergyAnalysisConfigs/list',
    method: 'get',
    params: query
  })
}

// 查询能耗分析配置详细
export function getDispatchEnergyAnalysisConfigs(energyAnalysisConfigsId) {
  return request({
    url: '/system/dispatchEnergyAnalysisConfigs/' + energyAnalysisConfigsId,
    method: 'get'
  })
}

// 新增能耗分析配置
export function addDispatchEnergyAnalysisConfigs(data) {
  return request({
    url: '/system/dispatchEnergyAnalysisConfigs',
    method: 'post',
    data: data
  })
}

// 修改能耗分析配置
export function updateDispatchEnergyAnalysisConfigs(data) {
  return request({
    url: '/system/dispatchEnergyAnalysisConfigs',
    method: 'put',
    data: data
  })
}

// 删除能耗分析配置
export function delDispatchEnergyAnalysisConfigs(energyAnalysisConfigsId) {
  return request({
    url: '/system/dispatchEnergyAnalysisConfigs/' + energyAnalysisConfigsId,
    method: 'delete'
  })
}
